#include "Bow.h"

Bow::Bow(const char *bowType) {
	auto dic = GameData::getInstance()->getBowProPerty(bowType);
	m_bowFileName = dic->valueForKey(BOWFILENAME_KEY)->getCString();
	m_power = atoi(dic->valueForKey(BOWPOWER_KEY)->getCString());
	m_speed = atoi(dic->valueForKey(BOWSPEED_KEY)->getCString());
	m_multArrow = atoi(dic->valueForKey(BOWMULTARROW_KEY)->getCString());
}